<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="robots" content="noindex, nofollow, noarchive"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>错误提示</title>
    <style type="text/css">
        body {
            background-color: white;
            color: black;
            font: 9pt/11pt verdana, arial, sans-serif;
        }

        #container {
            width: 1024px;
        }

        a:link {
            font: 9pt/11pt verdana, arial, sans-serif;
            color: red;
        }

        a:visited {
            font: 9pt/11pt verdana, arial, sans-serif;
            color: #4e4e4e;
        }

        h1 {
            color: #FF0000;
            font: 18pt "Verdana";
            margin-bottom: 0.5em;
        }

        .bg1 {
            background-color: #FFFFCC;
        }

        .bg2 {
            background-color: #EEEEEE;
        }

        .table {
            background: #AAAAAA;
            font: 11pt Menlo, Consolas, "Lucida Console"
        }

        .info {
            background: none repeat scroll 0 0 #F3F3F3;
            border: 0px solid #aaaaaa;
            border-radius: 10px 10px 10px 10px;
            color: #000000;
            font-size: 11pt;
            line-height: 160%;
            margin-bottom: 1em;
            padding: 1em;
        }
    </style>
</head>
<body>
<div id="container">
    <h1><?php echo $type; ?>Error</h1>

    <div class="info"><?php echo $msg;?></div>
    <div class="info"><p><strong>PHP Debug</strong></p>
        <table cellpadding="5" cellspacing="1" width="100%" class="table">
            <tbody>
            <tr class="bg2">
                <td>No.</td>
                <td>File</td>
                <td>Line</td>
                <td>Code</td>
            </tr>
            <?php
                $traces = debug_backtrace();
                foreach($traces as $k => $trace){
            ?>
            <tr class="bg1">
                <td><?php echo $k+1;?></td>
                <td><?php echo $trace['file']; ?></td>
                <td><?php echo $trace['line']; ?></td>
                <td><?php echo $trace['class'] . '   ' . $trace['function']; ?></td>
            </tr>
            <?php } ?>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>